/*
 * Copyright (c) 2025 Alliedstar
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#ifndef _LED__H
#define _LED__H

#define LED0_NODE	DT_ALIAS(led0)
#if !DT_NODE_HAS_STATUS_OKAY(LED0_NODE)
#error "Unsupported board: led0 devicetree alias is not defined"
#endif

#define LED1_NODE	DT_ALIAS(led1)
#if !DT_NODE_HAS_STATUS_OKAY(LED1_NODE)
#error "Unsupported board: led1 devicetree alias is not defined"
#endif

#define BLINK_ONOFF K_MSEC(500)

int led_setup(void);
void blink_start(void);
void blink_stop(void);
void error_led_on(void);
void error_led_off(void);

#endif